<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>基础信息</title>
<script
	src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
	<link rel="stylesheet" type="text/css" href="/CdutPostBar/css/userinfo.css">
</head>
<body>
	<table>
		<tr>
			<td colspan="3"><img id="peopleimg" src="${session.user.image }"
				alt="头像"></td>
			<td><label>头像：</label></td>
		</tr>
		<tr>
			<td><label>账号：</label></td>
			<td><label>${session.user.account }</label></td>
			<td><label>姓名：</label></td>
			<td><label>${session.user.name }</label></td>
		</tr>
		<tr>
			<td><c:if test="${session.user.userType=='t'}">
					<label>工号：</label>
				</c:if>
				<c:if test="${session.user.userType=='s'}">
					<label>学号：</label>
				</c:if></td>
			<td><label>${session.user.workNumber }</label></td>
			<td><label>手机：</label></td>
			<td><label>${session.user.phoneNumber }</label></td>
		</tr>
		<tr>
			<td><label>性别：</label></td>
			<td><c:if test="${session.user.sex=='m' }">
					<label>男</label>
				</c:if>
				<c:if test="${session.user.sex=='f' }">
					<label>女</label>
				</c:if>
				<c:if test="${session.user.sex=='' }">
					<label>未知</label>
				</c:if></td>
			<td><label>用户：</label></td>
			<td><c:if test="${session.user.userType=='t'}">
					<label>教师</label>
				</c:if>
				<c:if test="${session.user.userType=='s'}">
					<label>学生</label>
				</c:if></td>
		</tr>

		<tr>
			<td><label>QQ：</label></td>
			<td><label>${session.user.qqNumber }</label></td>
			<td><label>邮箱：</label></td>
			<td><label>${session.user.email }</label></td>
		</tr>


		<tr>
			<td><label>简介：</label></td>
			<td colspan="3"><p>${session.user.introduction }</p></td>
		</tr>
		<tr>
			<td colspan="4"><button id="changebtn">修改一下</button></td>
		</tr>
	</table>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#changebtn").click(function() {
				location.href = "../pages/toUpdateUserInfoPage.action";
			});
		});
	</script>
</body>
</html>